import Vue from 'vue'
import VueRouter from 'vue-router'

import login from "../login.vue"
import index from "../index.vue"

import Student from "../pages/Student.vue"
import ClassManager from "../pages/ClassManager.vue"
import Room from "../pages/Room.vue"

Vue.use(VueRouter)

const routes = [ 
    {path:'/land',component:login},
    {path:'/index',component:index,
        children:[
            {path:'/index/student',component:Student},
            {path:'/index/class',component:ClassManager},
            {path:'/index/room',component:Room},
        ]

    }
]

export default new VueRouter({
    mode:'history',
    routes
})
